source /home/work_nfs7/xlgeng/.bashrc
# conda activate gxl_salmonn3
#dir=/home/work_nfs6/xlgeng/bsmu_template/exp/salmonn_v8_2_lr5e_5_new
#dir=/home/work_nfs8/xlgeng/new_workspace/wenet_gxl_salmonn/examples/aishell/salmonn/salmonn_v10
dir=/home/work_nfs8/xlgeng/new_workspace/wenet_gxl_salmonn/examples/aishell/salmonn/exp/salmonn_v12/0_epoch
mkdir -p $dir
#train_config=conf/train_salmonn_v8.yaml
train_config=conf/train_salmonn_v12.yaml
test_data_dir="/home/work_nfs8/xlgeng/data/scp_test/little_test_1000"

decode_checkpoint_name="epoch_0"
decode_checkpoint=$dir/"${decode_checkpoint_name}".pt
stage=5
stop_stage=5

gxl_num="001"
my_named_nohup "{$gxl_num}_test_1" ./recognize1.sh --gpu_id 0 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir"
my_named_nohup "{$gxl_num}_test_2" ./recognize2.sh --gpu_id 1 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir"
my_named_nohup "{$gxl_num}_test_3" ./recognize3.sh --gpu_id 2 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir"
my_named_nohup "{$gxl_num}_test_4" ./recognize4.sh --gpu_id 3 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage --test_data_dir "$test_data_dir"
#my_named_nohup "{$gxl_num}_test_all" ./recognize.sh --gpu_id 0 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage




















#my_named_nohup "{$gxl_num}_test_shard" ./recognize_shard.sh  --gpu_id 4 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage
##added_sets1=( "gxl_numwei_asr/noisy" "huawei_asr/real" "107" )
##added_sets2=( "gxl_numstant"  "xiaotiancai" )
#my_named_nohup "{$gxl_num}_test_added1" ./recognize_added1.sh --gpu_id 5 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage
## my_named_nohup "{$gxl_num}_test_added2" ./recognize_added2.sh --gpu_id 6 --dir $dir --train_config "$train_config" --decode_checkpoint "$decode_checkpoint" --decode_checkpoint_name "$decode_checkpoint_name" --stage $stage --stop_stage $stop_stage














# #!/bin/bash

# # 后台执行A.sh，B.sh，C.sh
# ./run_test_1_1.sh &
# pid_A=$!

# ./run_test_1_2.sh &
# pid_B=$!

# ./run_test_1_3.sh &
# pid_C=$!

# ./run_test_1_4.sh &
# pid_D=$!

# # 等待所有后台任务完成
# wait $pid_A
# wait $pid_B
# wait $pid_C
# wait $pid_D

# echo "所有脚本执行完成"